﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace PowerManager.Framework.ModleBuilder.Attributes
{
    [AttributeUsage(AttributeTargets.Property, AllowMultiple = false, Inherited = false)]
    public sealed class AccessControlAttribute:Attribute
    {
        private readonly AccessStyle _accessControl;
        
        public AccessControlAttribute() {
            _accessControl = AccessStyle.Read;
        }

        public AccessControlAttribute(AccessStyle accessControl) {
            _accessControl = accessControl;
        }
    }

    [Flags]
    public enum AccessStyle
    {
        Read = 0x0001,
        Write = 0x0004,
        ReadAndWrite = Read & Write
    }
}
